<include file="Public:header" />
<div class="clear"></div>
<div class="breadcrumb"> <a href="{$webConfig['host_url']}">{$webConfig['web_name']}</a><span>&gt;</span> <a href="{:U('/member/')}">会员中心</a><span>&gt;</span> 我的评论 </div>
<div class="clear"></div>
<div class="main-user">
	<include file="left" />
    <div class="main-user-right">
    	<div class="user-title">
        	我的评论
        </div>
        <div class="clear"></div>
        <table width="100%" border="0" cellpadding="0" cellspacing="1" class="serial-table">
        <tr>
            <th>评论详情</th>
            <th>评论时间</th>
            <th>操作</th>
        </tr>
        <volist name="list" id="vo">
        	<tr id="del-{$vo['id']}">
            	<td width="70%"><strong>网站：</strong><a href="{$vo['web_url']}" target="_blank">{$vo['web_name']}</a><br />
                	<strong>昵称：</strong>{$vo['name']}<br />
                    <strong>内容：</strong>{$vo['content']}</td>
            	<td align="center">{:date('Y-m-d H:i:s', $vo['add_time'])}</td>
            	<td class="manage"  align="center"><a href="javascript:commentdel('{$vo['id']}');" id="btn-del-{$vo['id']}">删除</a></td>
            </tr>
        </volist>
        </table>
  	    <div class="clearfix showpage"><span class="total_page">共{$page['count']}个评论 当前{$page['nowPage']}/{$page['countPage']}页</span> <gt name="page['prev']" value="1"><a href="{:U($pageUrl, array('p'=>$page['prev']))}" class="prev_page">上一页</a></gt> <foreach name="page['forPage']" item="vo">
            <if condition="($page['nowPage'] == $vo)"> <span class="current">{$vo}</span>
              <else/>
              <a href="{:U($pageUrl, array('p'=>$vo))}" class="pages">{$vo}</a> </if>
          </foreach> <gt name="page['prev']" value="1"><a href="{:U($pageUrl, array('p'=>$page['next']))}" class="next_page">下一页</a></gt>  </div>
        <div class="clear"></div>
    </div>
</div>
<div class="clear"></div>
<script type="text/javascript">
function commentdel(id){
	$("#btn-del-"+id).html("正在删除!");
	$.ajax({
	   type: "POST",
	   url: "{:U('commentdel')}",
	   data: "id="+id,
	   success: function(result){
			if(result['status'] == 1){
				$("#del-"+id).fadeOut(500, function(){
					$("#del-"+id).remove();
				});
			}else{
				$("#btn-del-"+id).html(result['info']);	
			}
	   }
	});	
}
</script>
<include file="Public:footer" />